#!/bin/bash

######################################################################
     该脚本将当前目录下的项目都推到mvn仓库
######################################################################



for dir in */; do
    # 移除目录名后的斜杠
    dir_name="${dir%/}"
	# 检查是否是 lls-commom-sys 目录，如果是则跳过
    if [[ "$dir_name" == "lls-commom-sys" ]]; then
        echo "跳过目录: $dir_name"
        continue
    fi
	
    if [[ "$dir_name" == "logs" ]]; then
        echo "跳过目录: $dir_name"
        continue
    fi
	
    if [[ "$dir_name" == "zj-common" ]]; then
        echo "跳过目录: $dir_name"
        continue
    fi
	
	if [[ "$dir_name" == "zj-workflow-cloud" ]]; then
        echo "跳过目录: $dir_name"
        continue
    fi
	
	
	echo "*****************   deploy $dir_name **********************"
	cd $dir_name
	mvn clean deploy  -DskipTests
	cd ..
    
   
done





